using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace Viprava
{
	/// <summary>
	/// Summary description for Form1.
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
		private System.Windows.Forms.TreeView treeView1;
		private System.Windows.Forms.ListView listView1;
		private System.Windows.Forms.ColumnHeader Nakashtra;
		private System.Windows.Forms.ColumnHeader Rasi;
		private System.Windows.Forms.ColumnHeader Varna;
		private System.Windows.Forms.ColumnHeader Guna;
		private System.Windows.Forms.TabControl tabControl1;
		private System.Windows.Forms.TabPage Table;
		private System.Windows.Forms.TabPage Chart;
		private Viprava.AstroChart astroChart1;
		private Viprava.AstroChart astroChart2;
		private Viprava.AstroChart astroChart3;
		private Viprava.AstroChart astroChart4;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Form1()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem(new System.Windows.Forms.ListViewItem.ListViewSubItem[] {
																																								new System.Windows.Forms.ListViewItem.ListViewSubItem(null, "123", System.Drawing.SystemColors.WindowText, System.Drawing.SystemColors.Window, new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)))),
																																								new System.Windows.Forms.ListViewItem.ListViewSubItem(null, "234"),
																																								new System.Windows.Forms.ListViewItem.ListViewSubItem(null, "345"),
																																								new System.Windows.Forms.ListViewItem.ListViewSubItem(null, "567"),
																																								new System.Windows.Forms.ListViewItem.ListViewSubItem(null, "")}, -1);
			this.treeView1 = new System.Windows.Forms.TreeView();
			this.listView1 = new System.Windows.Forms.ListView();
			this.Nakashtra = new System.Windows.Forms.ColumnHeader();
			this.Rasi = new System.Windows.Forms.ColumnHeader();
			this.Varna = new System.Windows.Forms.ColumnHeader();
			this.Guna = new System.Windows.Forms.ColumnHeader();
			this.tabControl1 = new System.Windows.Forms.TabControl();
			this.Table = new System.Windows.Forms.TabPage();
			this.Chart = new System.Windows.Forms.TabPage();
			this.astroChart4 = new Viprava.AstroChart();
			this.astroChart3 = new Viprava.AstroChart();
			this.astroChart2 = new Viprava.AstroChart();
			this.astroChart1 = new Viprava.AstroChart();
			this.tabControl1.SuspendLayout();
			this.Table.SuspendLayout();
			this.Chart.SuspendLayout();
			this.SuspendLayout();
			// 
			// treeView1
			// 
			this.treeView1.CheckBoxes = true;
			this.treeView1.ImageIndex = -1;
			this.treeView1.Name = "treeView1";
			this.treeView1.SelectedImageIndex = -1;
			this.treeView1.Size = new System.Drawing.Size(184, 648);
			this.treeView1.TabIndex = 1;
			// 
			// listView1
			// 
			this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
																						this.Nakashtra,
																						this.Rasi,
																						this.Varna,
																						this.Guna});
			this.listView1.FullRowSelect = true;
			this.listView1.GridLines = true;
			this.listView1.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
																					  listViewItem1});
			this.listView1.Location = new System.Drawing.Point(8, 8);
			this.listView1.MultiSelect = false;
			this.listView1.Name = "listView1";
			this.listView1.Size = new System.Drawing.Size(712, 560);
			this.listView1.TabIndex = 2;
			this.listView1.View = System.Windows.Forms.View.Details;
			this.listView1.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged);
			// 
			// tabControl1
			// 
			this.tabControl1.Controls.AddRange(new System.Windows.Forms.Control[] {
																					  this.Table,
																					  this.Chart});
			this.tabControl1.Location = new System.Drawing.Point(192, 8);
			this.tabControl1.Name = "tabControl1";
			this.tabControl1.SelectedIndex = 0;
			this.tabControl1.Size = new System.Drawing.Size(744, 632);
			this.tabControl1.TabIndex = 3;
			// 
			// Table
			// 
			this.Table.Controls.AddRange(new System.Windows.Forms.Control[] {
																				this.listView1});
			this.Table.Location = new System.Drawing.Point(4, 22);
			this.Table.Name = "Table";
			this.Table.Size = new System.Drawing.Size(736, 606);
			this.Table.TabIndex = 0;
			this.Table.Text = "Table";
			// 
			// Chart
			// 
			this.Chart.Controls.AddRange(new System.Windows.Forms.Control[] {
																				this.astroChart4,
																				this.astroChart3,
																				this.astroChart2,
																				this.astroChart1});
			this.Chart.Location = new System.Drawing.Point(4, 22);
			this.Chart.Name = "Chart";
			this.Chart.Size = new System.Drawing.Size(736, 606);
			this.Chart.TabIndex = 1;
			this.Chart.Text = "Chart";
			// 
			// astroChart4
			// 
			this.astroChart4.Location = new System.Drawing.Point(352, 296);
			this.astroChart4.Name = "astroChart4";
			this.astroChart4.Size = new System.Drawing.Size(304, 304);
			this.astroChart4.TabIndex = 3;
			// 
			// astroChart3
			// 
			this.astroChart3.Location = new System.Drawing.Point(0, 296);
			this.astroChart3.Name = "astroChart3";
			this.astroChart3.Size = new System.Drawing.Size(320, 296);
			this.astroChart3.TabIndex = 2;
			// 
			// astroChart2
			// 
			this.astroChart2.Location = new System.Drawing.Point(352, 0);
			this.astroChart2.Name = "astroChart2";
			this.astroChart2.Size = new System.Drawing.Size(312, 296);
			this.astroChart2.TabIndex = 1;
			// 
			// astroChart1
			// 
			this.astroChart1.Name = "astroChart1";
			this.astroChart1.Size = new System.Drawing.Size(304, 304);
			this.astroChart1.TabIndex = 0;
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(968, 654);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.tabControl1,
																		  this.treeView1});
			this.Name = "Form1";
			this.Text = "Form1";
			this.Load += new System.EventHandler(this.Form1_Load);
			this.tabControl1.ResumeLayout(false);
			this.Table.ResumeLayout(false);
			this.Chart.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new Form1());
		}

		private void Form1_Load(object sender, System.EventArgs e)
		{ 

			    
			string[] thithi= {"SP-Parathma","SP-Dvitya","SP-Tritya", "SP-Chaturthi","SP-Panhami","SP-Shasthi","SP-Saptami",
								 "SP-Ashtami","SP-Navami","SP-Dasami","SP-Ekadasi","SP-Dvadasi","SP-Trayodasi","SP-Chaturdasi","SP-Purnima",
								 "KP-Parathma","KP-Dvitya","KP-Tritya", "KP-Chaturthi","KP-Panhami","KP-Shasthi","KP-Saptami",
								 "KP-Ashtami","KP-Navami","KP-Dasami","KP-Ekadasi","KP-Dvadasi","KP-Trayodasi","KP-Chaturdasi","KP-Amaasya"};
			string[] weekDays = {"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","saturday"};

			for( int i =0; i< thithi.Length; i++ )
			{
				
				TreeNode Node = new TreeNode(i+1 + " " + thithi[i].ToString()) ;
				treeView1.Nodes.Add(Node);
			}

			
			astroChart1.HouseFirst.Text = "ASC";
			astroChart1.HouseFirst.ForeColor = Color.Red ;     


		}

		private void listView1_SelectedIndexChanged(object sender, System.EventArgs e)
		{
		
		}

		

		

	}
}
